home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Apple Shared Library Manager / ASLM 2.0.1 Licensing Disk / Sources / ASLMDefines.r < prev    next >
Encoding:
Text File  |  1996-11-19  |  9.9 KB  |  383 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ASLMDefines.r
  3.  
  4.     Contains:    #defines for the ASLM Installer.
  5.  
  6.     Copyright:    © 1991-1994 by Apple Computer, Inc., all rights reserved.
  7.  
  8. */
  9.  
  10. #define SLMReleaseDate        Today
  11.  
  12. #ifndef SLMBase
  13.     #define SLMBase                8000
  14. #endif
  15. #define IntlSLMBase                        SLMBase+800
  16.  
  17. #ifndef InstallerDiskName
  18.     #define InstallerDiskName    "ASLM Installer:"
  19. #endif
  20. #define SLMFolder    InstallerDiskName "Shared Library Manager Files:"
  21.  
  22. #ifndef SLMCustomShowFlag
  23.     #define SLMCustomShowFlag    showsOnCustom
  24. #endif
  25.  
  26. /*
  27. ** The version number below should be 1 higher than the current version
  28. ** number.
  29. */
  30.  
  31. #ifndef SLMCheckVersion
  32. #define SLMCheckVersion        2, 1, release, 1
  33. #endif
  34.  
  35. #ifndef SLMCustomVersion
  36. #define SLMCustomVersion    201
  37. #endif
  38.  
  39. #ifndef INTERNATIONAL
  40.     #define INTERNATIONAL    0
  41. #endif
  42.  
  43. #if INTERNATIONAL
  44.     #define USONLY    0
  45. #else
  46.     #define USONLY    1
  47. #endif
  48.  
  49. #ifndef SYSTEM7ONLY
  50. #define SYSTEM7ONLY        0
  51. #endif
  52.  
  53. #if SYSTEM7ONLY
  54.     #define SYSTEM6            0
  55. #else
  56.     #define SYSTEM6            1
  57. #endif
  58.  
  59.  
  60. /*******************************************************************************
  61. ** Defines for Resource ID's
  62. ********************************************************************************/
  63.  
  64. /*    -------------------------------------------------------------------------
  65.     Assertions
  66.     ------------------------------------------------------------------------- */
  67.  
  68. #define aHasLater68kASLM                SLMBase+2
  69. #define aHasLaterPPCASLM                SLMBase+3
  70. #define    aHasEtherTalk                    SLMBase+4
  71.  
  72. // Assertions that define what system we are installng onto
  73.  
  74. #define aHasAnySystem                    SLMBase+10
  75. #define aHasSystem68k                    SLMBase+11
  76. #define aHasSystem6                        SLMBase+12
  77. #define aHasSystem7                        SLMBase+13
  78. #define aHasSystemAUX                    SLMBase+14
  79. #define aHasSystemPPC                    SLMBase+15
  80.  
  81. // Assertions to signal errors
  82.  
  83. #define aNoSystemError                    SLMBase+20
  84. #define aBadSystemError                    SLMBase+21
  85. #define aSystem7OnlyError                SLMBase+22
  86. #define aPowerPCOn68KError                SLMBase+23
  87.  
  88. /*    -------------------------------------------------------------------------
  89.     Rules
  90.     ------------------------------------------------------------------------- */
  91.  
  92. #define rCheckForLater68kASLM            SLMBase+101
  93. #define rCheckForLaterPPCASLM            SLMBase+102
  94. #define rCheckForEtherTalk                SLMBase+103
  95. #define rCheckForEtherTalk2_0            SLMBase+104
  96. #define rCheckForEtherTalk2_1            SLMBase+105
  97. #define rCheckForEtherTalkPhase2        SLMBase+106
  98.  
  99. // Rules to set "system" assertions
  100.  
  101. #define rCheckForAnySystem                SLMBase+110
  102. #define rCheckForSystem6                SLMBase+111
  103. #define rCheckForSystem7                SLMBase+112
  104. #define rCheckForSystemAUX                SLMBase+113
  105. #define rCheckForSystemPPC                SLMBase+114
  106.  
  107. // Rules to set error detection assertions
  108.  
  109. #define rAssertNoSystemError            SLMBase+140
  110. #define rAssertBadSystemError            SLMBase+141
  111. #define rAssertSystem7OnlyError            SLMBase+142
  112. #define rAssertPowerPCOn68KError        SLMBase+143
  113.  
  114. // Rules to report errors
  115.  
  116. #define rReportNoSystemError            SLMBase+150
  117. #define rReportBadSystemError            SLMBase+151
  118. #define rReportSystem7OnlyError            SLMBase+152
  119. #define rReportPowerPCOn68KError        SLMBase+153
  120. #define rReportNewerVersionError        SLMBase+154
  121.  
  122. // Rules to add Easy Install packages
  123.  
  124. #define rAddSystem6Package                SLMBase+120
  125. #define rAddSystem7Package                SLMBase+121
  126. #define rAddSystemAUXPackage            SLMBase+122
  127. #define rAddSystemPPCPackage            SLMBase+123
  128. #define rAddEtherTalkPackage            SLMBase+124
  129.  
  130. // Rules to add Custom Install packages
  131.  
  132. #define rAddSystem6CustomPackage        SLMBase+130
  133. #define rAddSystem7CustomPackage        SLMBase+131
  134. #define rAddSystemAUXCustomPackage        SLMBase+132
  135. #define rAddSystemPPCCustomPackage        SLMBase+133
  136. #define rAddEtherTalkCustomPackage        SLMBase+134
  137.  
  138. // Rules to add easy install descriptions
  139.  
  140. #define rAdd68kASLMDescription            SLMBase+160
  141. #define rAddPPCASLMDescription            SLMBase+161
  142. #define rAddClickDescription            SLMBase+162
  143.  
  144. /*    -------------------------------------------------------------------------
  145.     Packages
  146.     ------------------------------------------------------------------------- */
  147.  
  148. // Top-level custom and easy install packages
  149.  
  150. #define pASLMForSystem6                SLMBase+200
  151. #define pASLMForSystem7                SLMBase+201
  152. #define pASLMForSystemAUX            SLMBase+202
  153. #define pASLMForSystemPPC            SLMBase+203
  154.  
  155. // Packages that install the "Shared Library Manager" and 
  156. // "Shared Library Manager PPC" files
  157.  
  158. #define p68kASLMFile                SLMBase+210
  159. #define pPPCASLMFile                SLMBase+211
  160.  
  161. // Packages that install the proper ASLM loader resource(s)
  162.  
  163. #define pASLMSystem6Loader            SLMBase+220
  164. #define pASLMSystem7Loader            SLMBase+221
  165. #define pASLMSystemPPCLoader        SLMBase+222
  166.  
  167. // Package that installs the EtherTalk Phase 2 file
  168.  
  169. #define pAddEtherTalk                SLMBase+230
  170.  
  171. // Packages that run action atoms
  172.  
  173. #define pShutDownActionAtom        SLMBase+240
  174. #define pFixFmapActionAtom        SLMBase+241
  175.  
  176. /*    -------------------------------------------------------------------------
  177.     Atoms
  178.     ------------------------------------------------------------------------- */
  179.  
  180. // The "Shared Library Manager" & "Shared Library Manager PPC" files
  181.  
  182. #define faSharedLibraryManager        SLMBase+300
  183. #define faSharedLibraryManagerPPC    SLMBase+301
  184.  
  185. // The ASLM loader resources in the "ASLM Resources" file
  186.  
  187. #define raAddAINI32700                SLMBase+310
  188. #define raAddAINI32702                SLMBase+311
  189. #define raAddINIT19                    SLMBase+312
  190.  
  191. // Old ASLM loader resources that we want to delete
  192.  
  193. #define raDeleteINIT17                SLMBase+320
  194. #define raDeleteINIT19                SLMBase+321
  195. #define raDeleteINIT22                SLMBase+322
  196. #define raDeleteAINI1                SLMBase+323
  197. #define raDeleteAINI3                SLMBase+324
  198. #define raDeleteAINI32698            SLMBase+325
  199.  
  200. // The EtherTalk Phase 2 file
  201.  
  202. #define faEtherTalkPhase2            SLMBase+330
  203.  
  204. // Action atoms
  205.  
  206. #define aaShutDownActionAtom        SLMBase+340
  207. #define aaFixFmapActionAtom            SLMBase+341
  208.  
  209. /*    -------------------------------------------------------------------------
  210.     Source and Target file specs
  211.     ------------------------------------------------------------------------- */
  212.  
  213. // The "Shared Library Manager" & "Shared Library Manager PPC" files
  214.  
  215. #define fsSrcSharedLibraryManager        SLMBase+400
  216. #define fsSrcSharedLibraryManagerPPC    SLMBase+401
  217. #define fsTgtSharedLibraryManager        SLMBase+402
  218. #define fsTgtSharedLibraryManagerPPC    SLMBase+403
  219.  
  220. // The "System" file
  221.  
  222. #define fsSystemFile                SLMBase+410
  223.  
  224. // The "EtherTalk Phase 2" file
  225.  
  226. #define fsSrcEtherTalkPhase2        SLMBase+411
  227. #define fsTrgEtherTalkPhase2        SLMBase+412
  228.  
  229. // Other EtherTalk files whose existence we check for
  230.  
  231. #define fsTrgEtherTalk                SLMBase+413
  232. #define fsTrgEtherTalk2_0            SLMBase+414
  233. #define fsTrgEtherTalk2_1            SLMBase+415
  234.  
  235. // The "ASLM Resources" file
  236.  
  237. #define fsASLMResources                SLMBase+420
  238.  
  239. /*    -------------------------------------------------------------------------
  240.     Icons
  241.     ------------------------------------------------------------------------- */
  242.  
  243. #define ASLMIcon                    SLMBase+500
  244.  
  245.  
  246. /**********************************************************************
  247. ** Some Defines to make things more readable
  248. ***********************************************************************/
  249.  
  250. #ifndef StdLeaveNewerCopy
  251. #define StdLeaveNewerCopy        dontDeleteWhenRemoving,    \
  252.                                 deleteWhenInstalling,    \
  253.                                 copy,                    \
  254.                                 leaveAloneIfNewer,        \
  255.                                 updateExisting,            \
  256.                                 copyifNewOrUpdate,        \
  257.                                 rsrcFork,                \
  258.                                 dataFork    
  259. #endif
  260.  
  261. #ifndef StdCopy
  262. #define StdCopy                    dontDeleteWhenRemoving,    \
  263.                                 deleteWhenInstalling,    \
  264.                                 copy,                    \
  265.                                 updateEvenIfNewer,        \
  266.                                 updateExisting,            \
  267.                                 copyifNewOrUpdate,        \
  268.                                 rsrcFork,                \
  269.                                 dataFork    
  270. #endif
  271.  
  272. #ifndef StdRemLeaveNewerCopy
  273. #define StdRemLeaveNewerCopy    deleteWhenRemoving,    \
  274.                                 deleteWhenInstalling,    \
  275.                                 copy,                    \
  276.                                 leaveAloneIfNewer,        \
  277.                                 updateExisting,            \
  278.                                 copyifNewOrUpdate,        \
  279.                                 rsrcFork,                \
  280.                                 dataFork    
  281. #endif
  282.  
  283. #ifndef StdRemCopy
  284. #define StdRemCopy                deleteWhenRemoving,    \
  285.                                 deleteWhenInstalling,    \
  286.                                 copy,                    \
  287.                                 updateEvenIfNewer,        \
  288.                                 updateExisting,            \
  289.                                 copyifNewOrUpdate,        \
  290.                                 rsrcFork,                \
  291.                                 dataFork    
  292. #endif
  293.  
  294. #ifndef StdDelete
  295. #define StdDelete                deleteWhenRemoving,        \
  296.                                 deleteWhenInstalling,    \
  297.                                 dontCopy,                \
  298.                                 updateEvenIfNewer,        \
  299.                                 updateExisting,            \
  300.                                 copyifNewOrUpdate,        \
  301.                                 rsrcFork,                \
  302.                                 dataFork
  303. #endif
  304.  
  305. #ifndef StdResCopy
  306. #define StdResCopy                dontDeleteWhenRemoving,    \
  307.                                 deleteWhenInstalling,    \
  308.                                 copy,                    \
  309.                                 tgtRequired,            \
  310.                                 updateExisting,            \
  311.                                 copyIfNewOrUpdate,        \
  312.                                 dontIgnoreProtection,    \
  313.                                 srcNeedExist,            \
  314.                                 byID,                    \
  315.                                 nameNeedNotMatch
  316. #endif
  317.  
  318. #ifndef StdRemResCopy
  319. #define StdRemResCopy            deleteWhenRemoving,        \
  320.                                 deleteWhenInstalling,    \
  321.                                 copy,                    \
  322.                                 tgtRequired,            \
  323.                                 updateExisting,            \
  324.                                 copyIfNewOrUpdate,        \
  325.                                 dontIgnoreProtection,    \
  326.                                 srcNeedExist,            \
  327.                                 byID,                    \
  328.                                 nameNeedNotMatch
  329. #endif
  330.  
  331. #ifndef StdRemResCopy1
  332. #define StdRemResCopy1            deleteWhenRemoving,    \
  333.                                 deleteWhenInstalling,    \
  334.                                 copy,                    \
  335.                                 leaveAloneIfNewer,        \
  336.                                 tgtRequired,            \
  337.                                 updateExisting,            \
  338.                                 copyIfNewOrUpdate,        \
  339.                                 dontIgnoreProtection,    \
  340.                                 srcNeedExist,            \
  341.                                 byID,                    \
  342.                                 nameNeedNotMatch
  343. #endif
  344.  
  345. #ifndef StdResMake
  346. #define StdResMake                dontDeleteWhenRemoving,        \
  347.                                 dontDeleteWhenInstalling,    \
  348.                                 copy,                    \
  349.                                 noTgtRequired,            \
  350.                                 updateExisting,            \
  351.                                 copyIfNewOrUpdate,        \
  352.                                 dontIgnoreProtection,    \
  353.                                 srcNeedExist,            \
  354.                                 byID,                    \
  355.                                 nameNeedNotMatch
  356. #endif
  357.  
  358. #ifndef StdResCopyName
  359. #define StdResCopyName            dontDeleteWhenRemoving,    \
  360.                                 dontDeleteWhenInstalling,    \
  361.                                 copy,                    \
  362.                                 tgtRequired,            \
  363.                                 updateExisting,            \
  364.                                 copyIfNewOrUpdate,        \
  365.                                 dontIgnoreProtection,    \
  366.                                 srcNeedExist,            \
  367.                                 byID,                    \
  368.                                 nameMustMatch
  369. #endif
  370.  
  371. #ifndef StdResDelete
  372. #define StdResDelete            deleteWhenRemoving,        \
  373.                                 deleteWhenInstalling,    \
  374.                                 dontCopy,                \
  375.                                 tgtRequired,            \
  376.                                 updateExisting,            \
  377.                                 copyIfNewOrUpdate,        \
  378.                                 ignoreProtection,        \
  379.                                 srcNeedNotExist,        \
  380.                                 byID,                    \
  381.                                 nameNeedNotMatch
  382. #endif
  383.